import Home from "../pages/Home"
import Detail from "../pages/Detail"

import Classfy from "../pages/Home/Classfy"
import Main from "../pages/Home/Main"
import More from "../pages/Home/More"
import My from "../pages/Home/My"
import ShopCar from "../pages/Home/Classfy"

const routes= [{
    path:"/home",
    name:'主页',
    component:Home,
    children:[{
        path:"/home/main",
        name:'主页',
        component:Main
    },{
        path:"/home/classfy",
        name:'分类',
        component:Classfy
    },{
        path:"/home/more",
        name:'发现',
        component:More
    },{
        path:"/home/shopcar",
        name:'购物车',
        component:ShopCar
    },{
        path:"/home/my",
        name:'我的',
        component:My
    }]
},{
    path:"/detail",
    name:'详情',
    component:Detail
},{
    from:"/",
    to:'/home'
},]

export default routes